package com.shire.shire_interface.model.friend;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class WxFriendExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public WxFriendExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andWxaccountIsNull() {
            addCriterion("wxAccount is null");
            return (Criteria) this;
        }

        public Criteria andWxaccountIsNotNull() {
            addCriterion("wxAccount is not null");
            return (Criteria) this;
        }

        public Criteria andWxaccountEqualTo(String value) {
            addCriterion("wxAccount =", value, "wxaccount");
            return (Criteria) this;
        }

        public Criteria andWxaccountNotEqualTo(String value) {
            addCriterion("wxAccount <>", value, "wxaccount");
            return (Criteria) this;
        }

        public Criteria andWxaccountGreaterThan(String value) {
            addCriterion("wxAccount >", value, "wxaccount");
            return (Criteria) this;
        }

        public Criteria andWxaccountGreaterThanOrEqualTo(String value) {
            addCriterion("wxAccount >=", value, "wxaccount");
            return (Criteria) this;
        }

        public Criteria andWxaccountLessThan(String value) {
            addCriterion("wxAccount <", value, "wxaccount");
            return (Criteria) this;
        }

        public Criteria andWxaccountLessThanOrEqualTo(String value) {
            addCriterion("wxAccount <=", value, "wxaccount");
            return (Criteria) this;
        }

        public Criteria andWxaccountLike(String value) {
            addCriterion("wxAccount like", value, "wxaccount");
            return (Criteria) this;
        }

        public Criteria andWxaccountNotLike(String value) {
            addCriterion("wxAccount not like", value, "wxaccount");
            return (Criteria) this;
        }

        public Criteria andWxaccountIn(List<String> values) {
            addCriterion("wxAccount in", values, "wxaccount");
            return (Criteria) this;
        }

        public Criteria andWxaccountNotIn(List<String> values) {
            addCriterion("wxAccount not in", values, "wxaccount");
            return (Criteria) this;
        }

        public Criteria andWxaccountBetween(String value1, String value2) {
            addCriterion("wxAccount between", value1, value2, "wxaccount");
            return (Criteria) this;
        }

        public Criteria andWxaccountNotBetween(String value1, String value2) {
            addCriterion("wxAccount not between", value1, value2, "wxaccount");
            return (Criteria) this;
        }

        public Criteria andFriendwxidIsNull() {
            addCriterion("friendWxId is null");
            return (Criteria) this;
        }

        public Criteria andFriendwxidIsNotNull() {
            addCriterion("friendWxId is not null");
            return (Criteria) this;
        }

        public Criteria andFriendwxidEqualTo(String value) {
            addCriterion("friendWxId =", value, "friendwxid");
            return (Criteria) this;
        }

        public Criteria andFriendwxidNotEqualTo(String value) {
            addCriterion("friendWxId <>", value, "friendwxid");
            return (Criteria) this;
        }

        public Criteria andFriendwxidGreaterThan(String value) {
            addCriterion("friendWxId >", value, "friendwxid");
            return (Criteria) this;
        }

        public Criteria andFriendwxidGreaterThanOrEqualTo(String value) {
            addCriterion("friendWxId >=", value, "friendwxid");
            return (Criteria) this;
        }

        public Criteria andFriendwxidLessThan(String value) {
            addCriterion("friendWxId <", value, "friendwxid");
            return (Criteria) this;
        }

        public Criteria andFriendwxidLessThanOrEqualTo(String value) {
            addCriterion("friendWxId <=", value, "friendwxid");
            return (Criteria) this;
        }

        public Criteria andFriendwxidLike(String value) {
            addCriterion("friendWxId like", value, "friendwxid");
            return (Criteria) this;
        }

        public Criteria andFriendwxidNotLike(String value) {
            addCriterion("friendWxId not like", value, "friendwxid");
            return (Criteria) this;
        }

        public Criteria andFriendwxidIn(List<String> values) {
            addCriterion("friendWxId in", values, "friendwxid");
            return (Criteria) this;
        }

        public Criteria andFriendwxidNotIn(List<String> values) {
            addCriterion("friendWxId not in", values, "friendwxid");
            return (Criteria) this;
        }

        public Criteria andFriendwxidBetween(String value1, String value2) {
            addCriterion("friendWxId between", value1, value2, "friendwxid");
            return (Criteria) this;
        }

        public Criteria andFriendwxidNotBetween(String value1, String value2) {
            addCriterion("friendWxId not between", value1, value2, "friendwxid");
            return (Criteria) this;
        }

        public Criteria andFriendaliasIsNull() {
            addCriterion("friendAlias is null");
            return (Criteria) this;
        }

        public Criteria andFriendaliasIsNotNull() {
            addCriterion("friendAlias is not null");
            return (Criteria) this;
        }

        public Criteria andFriendaliasEqualTo(String value) {
            addCriterion("friendAlias =", value, "friendalias");
            return (Criteria) this;
        }

        public Criteria andFriendaliasNotEqualTo(String value) {
            addCriterion("friendAlias <>", value, "friendalias");
            return (Criteria) this;
        }

        public Criteria andFriendaliasGreaterThan(String value) {
            addCriterion("friendAlias >", value, "friendalias");
            return (Criteria) this;
        }

        public Criteria andFriendaliasGreaterThanOrEqualTo(String value) {
            addCriterion("friendAlias >=", value, "friendalias");
            return (Criteria) this;
        }

        public Criteria andFriendaliasLessThan(String value) {
            addCriterion("friendAlias <", value, "friendalias");
            return (Criteria) this;
        }

        public Criteria andFriendaliasLessThanOrEqualTo(String value) {
            addCriterion("friendAlias <=", value, "friendalias");
            return (Criteria) this;
        }

        public Criteria andFriendaliasLike(String value) {
            addCriterion("friendAlias like", value, "friendalias");
            return (Criteria) this;
        }

        public Criteria andFriendaliasNotLike(String value) {
            addCriterion("friendAlias not like", value, "friendalias");
            return (Criteria) this;
        }

        public Criteria andFriendaliasIn(List<String> values) {
            addCriterion("friendAlias in", values, "friendalias");
            return (Criteria) this;
        }

        public Criteria andFriendaliasNotIn(List<String> values) {
            addCriterion("friendAlias not in", values, "friendalias");
            return (Criteria) this;
        }

        public Criteria andFriendaliasBetween(String value1, String value2) {
            addCriterion("friendAlias between", value1, value2, "friendalias");
            return (Criteria) this;
        }

        public Criteria andFriendaliasNotBetween(String value1, String value2) {
            addCriterion("friendAlias not between", value1, value2, "friendalias");
            return (Criteria) this;
        }

        public Criteria andFriendnickIsNull() {
            addCriterion("friendNick is null");
            return (Criteria) this;
        }

        public Criteria andFriendnickIsNotNull() {
            addCriterion("friendNick is not null");
            return (Criteria) this;
        }

        public Criteria andFriendnickEqualTo(String value) {
            addCriterion("friendNick =", value, "friendnick");
            return (Criteria) this;
        }

        public Criteria andFriendnickNotEqualTo(String value) {
            addCriterion("friendNick <>", value, "friendnick");
            return (Criteria) this;
        }

        public Criteria andFriendnickGreaterThan(String value) {
            addCriterion("friendNick >", value, "friendnick");
            return (Criteria) this;
        }

        public Criteria andFriendnickGreaterThanOrEqualTo(String value) {
            addCriterion("friendNick >=", value, "friendnick");
            return (Criteria) this;
        }

        public Criteria andFriendnickLessThan(String value) {
            addCriterion("friendNick <", value, "friendnick");
            return (Criteria) this;
        }

        public Criteria andFriendnickLessThanOrEqualTo(String value) {
            addCriterion("friendNick <=", value, "friendnick");
            return (Criteria) this;
        }

        public Criteria andFriendnickLike(String value) {
            addCriterion("friendNick like", value, "friendnick");
            return (Criteria) this;
        }

        public Criteria andFriendnickNotLike(String value) {
            addCriterion("friendNick not like", value, "friendnick");
            return (Criteria) this;
        }

        public Criteria andFriendnickIn(List<String> values) {
            addCriterion("friendNick in", values, "friendnick");
            return (Criteria) this;
        }

        public Criteria andFriendnickNotIn(List<String> values) {
            addCriterion("friendNick not in", values, "friendnick");
            return (Criteria) this;
        }

        public Criteria andFriendnickBetween(String value1, String value2) {
            addCriterion("friendNick between", value1, value2, "friendnick");
            return (Criteria) this;
        }

        public Criteria andFriendnickNotBetween(String value1, String value2) {
            addCriterion("friendNick not between", value1, value2, "friendnick");
            return (Criteria) this;
        }

        public Criteria andFriendremarkIsNull() {
            addCriterion("friendRemark is null");
            return (Criteria) this;
        }

        public Criteria andFriendremarkIsNotNull() {
            addCriterion("friendRemark is not null");
            return (Criteria) this;
        }

        public Criteria andFriendremarkEqualTo(String value) {
            addCriterion("friendRemark =", value, "friendremark");
            return (Criteria) this;
        }

        public Criteria andFriendremarkNotEqualTo(String value) {
            addCriterion("friendRemark <>", value, "friendremark");
            return (Criteria) this;
        }

        public Criteria andFriendremarkGreaterThan(String value) {
            addCriterion("friendRemark >", value, "friendremark");
            return (Criteria) this;
        }

        public Criteria andFriendremarkGreaterThanOrEqualTo(String value) {
            addCriterion("friendRemark >=", value, "friendremark");
            return (Criteria) this;
        }

        public Criteria andFriendremarkLessThan(String value) {
            addCriterion("friendRemark <", value, "friendremark");
            return (Criteria) this;
        }

        public Criteria andFriendremarkLessThanOrEqualTo(String value) {
            addCriterion("friendRemark <=", value, "friendremark");
            return (Criteria) this;
        }

        public Criteria andFriendremarkLike(String value) {
            addCriterion("friendRemark like", value, "friendremark");
            return (Criteria) this;
        }

        public Criteria andFriendremarkNotLike(String value) {
            addCriterion("friendRemark not like", value, "friendremark");
            return (Criteria) this;
        }

        public Criteria andFriendremarkIn(List<String> values) {
            addCriterion("friendRemark in", values, "friendremark");
            return (Criteria) this;
        }

        public Criteria andFriendremarkNotIn(List<String> values) {
            addCriterion("friendRemark not in", values, "friendremark");
            return (Criteria) this;
        }

        public Criteria andFriendremarkBetween(String value1, String value2) {
            addCriterion("friendRemark between", value1, value2, "friendremark");
            return (Criteria) this;
        }

        public Criteria andFriendremarkNotBetween(String value1, String value2) {
            addCriterion("friendRemark not between", value1, value2, "friendremark");
            return (Criteria) this;
        }

        public Criteria andFriendsexIsNull() {
            addCriterion("friendSex is null");
            return (Criteria) this;
        }

        public Criteria andFriendsexIsNotNull() {
            addCriterion("friendSex is not null");
            return (Criteria) this;
        }

        public Criteria andFriendsexEqualTo(Integer value) {
            addCriterion("friendSex =", value, "friendsex");
            return (Criteria) this;
        }

        public Criteria andFriendsexNotEqualTo(Integer value) {
            addCriterion("friendSex <>", value, "friendsex");
            return (Criteria) this;
        }

        public Criteria andFriendsexGreaterThan(Integer value) {
            addCriterion("friendSex >", value, "friendsex");
            return (Criteria) this;
        }

        public Criteria andFriendsexGreaterThanOrEqualTo(Integer value) {
            addCriterion("friendSex >=", value, "friendsex");
            return (Criteria) this;
        }

        public Criteria andFriendsexLessThan(Integer value) {
            addCriterion("friendSex <", value, "friendsex");
            return (Criteria) this;
        }

        public Criteria andFriendsexLessThanOrEqualTo(Integer value) {
            addCriterion("friendSex <=", value, "friendsex");
            return (Criteria) this;
        }

        public Criteria andFriendsexIn(List<Integer> values) {
            addCriterion("friendSex in", values, "friendsex");
            return (Criteria) this;
        }

        public Criteria andFriendsexNotIn(List<Integer> values) {
            addCriterion("friendSex not in", values, "friendsex");
            return (Criteria) this;
        }

        public Criteria andFriendsexBetween(Integer value1, Integer value2) {
            addCriterion("friendSex between", value1, value2, "friendsex");
            return (Criteria) this;
        }

        public Criteria andFriendsexNotBetween(Integer value1, Integer value2) {
            addCriterion("friendSex not between", value1, value2, "friendsex");
            return (Criteria) this;
        }

        public Criteria andFriendsignatureIsNull() {
            addCriterion("friendSignature is null");
            return (Criteria) this;
        }

        public Criteria andFriendsignatureIsNotNull() {
            addCriterion("friendSignature is not null");
            return (Criteria) this;
        }

        public Criteria andFriendsignatureEqualTo(String value) {
            addCriterion("friendSignature =", value, "friendsignature");
            return (Criteria) this;
        }

        public Criteria andFriendsignatureNotEqualTo(String value) {
            addCriterion("friendSignature <>", value, "friendsignature");
            return (Criteria) this;
        }

        public Criteria andFriendsignatureGreaterThan(String value) {
            addCriterion("friendSignature >", value, "friendsignature");
            return (Criteria) this;
        }

        public Criteria andFriendsignatureGreaterThanOrEqualTo(String value) {
            addCriterion("friendSignature >=", value, "friendsignature");
            return (Criteria) this;
        }

        public Criteria andFriendsignatureLessThan(String value) {
            addCriterion("friendSignature <", value, "friendsignature");
            return (Criteria) this;
        }

        public Criteria andFriendsignatureLessThanOrEqualTo(String value) {
            addCriterion("friendSignature <=", value, "friendsignature");
            return (Criteria) this;
        }

        public Criteria andFriendsignatureLike(String value) {
            addCriterion("friendSignature like", value, "friendsignature");
            return (Criteria) this;
        }

        public Criteria andFriendsignatureNotLike(String value) {
            addCriterion("friendSignature not like", value, "friendsignature");
            return (Criteria) this;
        }

        public Criteria andFriendsignatureIn(List<String> values) {
            addCriterion("friendSignature in", values, "friendsignature");
            return (Criteria) this;
        }

        public Criteria andFriendsignatureNotIn(List<String> values) {
            addCriterion("friendSignature not in", values, "friendsignature");
            return (Criteria) this;
        }

        public Criteria andFriendsignatureBetween(String value1, String value2) {
            addCriterion("friendSignature between", value1, value2, "friendsignature");
            return (Criteria) this;
        }

        public Criteria andFriendsignatureNotBetween(String value1, String value2) {
            addCriterion("friendSignature not between", value1, value2, "friendsignature");
            return (Criteria) this;
        }

        public Criteria andAvatarIsNull() {
            addCriterion("avatar is null");
            return (Criteria) this;
        }

        public Criteria andAvatarIsNotNull() {
            addCriterion("avatar is not null");
            return (Criteria) this;
        }

        public Criteria andAvatarEqualTo(String value) {
            addCriterion("avatar =", value, "avatar");
            return (Criteria) this;
        }

        public Criteria andAvatarNotEqualTo(String value) {
            addCriterion("avatar <>", value, "avatar");
            return (Criteria) this;
        }

        public Criteria andAvatarGreaterThan(String value) {
            addCriterion("avatar >", value, "avatar");
            return (Criteria) this;
        }

        public Criteria andAvatarGreaterThanOrEqualTo(String value) {
            addCriterion("avatar >=", value, "avatar");
            return (Criteria) this;
        }

        public Criteria andAvatarLessThan(String value) {
            addCriterion("avatar <", value, "avatar");
            return (Criteria) this;
        }

        public Criteria andAvatarLessThanOrEqualTo(String value) {
            addCriterion("avatar <=", value, "avatar");
            return (Criteria) this;
        }

        public Criteria andAvatarLike(String value) {
            addCriterion("avatar like", value, "avatar");
            return (Criteria) this;
        }

        public Criteria andAvatarNotLike(String value) {
            addCriterion("avatar not like", value, "avatar");
            return (Criteria) this;
        }

        public Criteria andAvatarIn(List<String> values) {
            addCriterion("avatar in", values, "avatar");
            return (Criteria) this;
        }

        public Criteria andAvatarNotIn(List<String> values) {
            addCriterion("avatar not in", values, "avatar");
            return (Criteria) this;
        }

        public Criteria andAvatarBetween(String value1, String value2) {
            addCriterion("avatar between", value1, value2, "avatar");
            return (Criteria) this;
        }

        public Criteria andAvatarNotBetween(String value1, String value2) {
            addCriterion("avatar not between", value1, value2, "avatar");
            return (Criteria) this;
        }

        public Criteria andFromgroupidIsNull() {
            addCriterion("fromGroupId is null");
            return (Criteria) this;
        }

        public Criteria andFromgroupidIsNotNull() {
            addCriterion("fromGroupId is not null");
            return (Criteria) this;
        }

        public Criteria andFromgroupidEqualTo(Integer value) {
            addCriterion("fromGroupId =", value, "fromgroupid");
            return (Criteria) this;
        }

        public Criteria andFromgroupidNotEqualTo(Integer value) {
            addCriterion("fromGroupId <>", value, "fromgroupid");
            return (Criteria) this;
        }

        public Criteria andFromgroupidGreaterThan(Integer value) {
            addCriterion("fromGroupId >", value, "fromgroupid");
            return (Criteria) this;
        }

        public Criteria andFromgroupidGreaterThanOrEqualTo(Integer value) {
            addCriterion("fromGroupId >=", value, "fromgroupid");
            return (Criteria) this;
        }

        public Criteria andFromgroupidLessThan(Integer value) {
            addCriterion("fromGroupId <", value, "fromgroupid");
            return (Criteria) this;
        }

        public Criteria andFromgroupidLessThanOrEqualTo(Integer value) {
            addCriterion("fromGroupId <=", value, "fromgroupid");
            return (Criteria) this;
        }

        public Criteria andFromgroupidIn(List<Integer> values) {
            addCriterion("fromGroupId in", values, "fromgroupid");
            return (Criteria) this;
        }

        public Criteria andFromgroupidNotIn(List<Integer> values) {
            addCriterion("fromGroupId not in", values, "fromgroupid");
            return (Criteria) this;
        }

        public Criteria andFromgroupidBetween(Integer value1, Integer value2) {
            addCriterion("fromGroupId between", value1, value2, "fromgroupid");
            return (Criteria) this;
        }

        public Criteria andFromgroupidNotBetween(Integer value1, Integer value2) {
            addCriterion("fromGroupId not between", value1, value2, "fromgroupid");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("status is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("status is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(Integer value) {
            addCriterion("status =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(Integer value) {
            addCriterion("status <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(Integer value) {
            addCriterion("status >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("status >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(Integer value) {
            addCriterion("status <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(Integer value) {
            addCriterion("status <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Integer> values) {
            addCriterion("status in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Integer> values) {
            addCriterion("status not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(Integer value1, Integer value2) {
            addCriterion("status between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("status not between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andIstopIsNull() {
            addCriterion("isTop is null");
            return (Criteria) this;
        }

        public Criteria andIstopIsNotNull() {
            addCriterion("isTop is not null");
            return (Criteria) this;
        }

        public Criteria andIstopEqualTo(Integer value) {
            addCriterion("isTop =", value, "istop");
            return (Criteria) this;
        }

        public Criteria andIstopNotEqualTo(Integer value) {
            addCriterion("isTop <>", value, "istop");
            return (Criteria) this;
        }

        public Criteria andIstopGreaterThan(Integer value) {
            addCriterion("isTop >", value, "istop");
            return (Criteria) this;
        }

        public Criteria andIstopGreaterThanOrEqualTo(Integer value) {
            addCriterion("isTop >=", value, "istop");
            return (Criteria) this;
        }

        public Criteria andIstopLessThan(Integer value) {
            addCriterion("isTop <", value, "istop");
            return (Criteria) this;
        }

        public Criteria andIstopLessThanOrEqualTo(Integer value) {
            addCriterion("isTop <=", value, "istop");
            return (Criteria) this;
        }

        public Criteria andIstopIn(List<Integer> values) {
            addCriterion("isTop in", values, "istop");
            return (Criteria) this;
        }

        public Criteria andIstopNotIn(List<Integer> values) {
            addCriterion("isTop not in", values, "istop");
            return (Criteria) this;
        }

        public Criteria andIstopBetween(Integer value1, Integer value2) {
            addCriterion("isTop between", value1, value2, "istop");
            return (Criteria) this;
        }

        public Criteria andIstopNotBetween(Integer value1, Integer value2) {
            addCriterion("isTop not between", value1, value2, "istop");
            return (Criteria) this;
        }

        public Criteria andCsidIsNull() {
            addCriterion("csId is null");
            return (Criteria) this;
        }

        public Criteria andCsidIsNotNull() {
            addCriterion("csId is not null");
            return (Criteria) this;
        }

        public Criteria andCsidEqualTo(Integer value) {
            addCriterion("csId =", value, "csid");
            return (Criteria) this;
        }

        public Criteria andCsidNotEqualTo(Integer value) {
            addCriterion("csId <>", value, "csid");
            return (Criteria) this;
        }

        public Criteria andCsidGreaterThan(Integer value) {
            addCriterion("csId >", value, "csid");
            return (Criteria) this;
        }

        public Criteria andCsidGreaterThanOrEqualTo(Integer value) {
            addCriterion("csId >=", value, "csid");
            return (Criteria) this;
        }

        public Criteria andCsidLessThan(Integer value) {
            addCriterion("csId <", value, "csid");
            return (Criteria) this;
        }

        public Criteria andCsidLessThanOrEqualTo(Integer value) {
            addCriterion("csId <=", value, "csid");
            return (Criteria) this;
        }

        public Criteria andCsidIn(List<Integer> values) {
            addCriterion("csId in", values, "csid");
            return (Criteria) this;
        }

        public Criteria andCsidNotIn(List<Integer> values) {
            addCriterion("csId not in", values, "csid");
            return (Criteria) this;
        }

        public Criteria andCsidBetween(Integer value1, Integer value2) {
            addCriterion("csId between", value1, value2, "csid");
            return (Criteria) this;
        }

        public Criteria andCsidNotBetween(Integer value1, Integer value2) {
            addCriterion("csId not between", value1, value2, "csid");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIsNull() {
            addCriterion("createTime is null");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIsNotNull() {
            addCriterion("createTime is not null");
            return (Criteria) this;
        }

        public Criteria andCreatetimeEqualTo(Date value) {
            addCriterion("createTime =", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotEqualTo(Date value) {
            addCriterion("createTime <>", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeGreaterThan(Date value) {
            addCriterion("createTime >", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("createTime >=", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeLessThan(Date value) {
            addCriterion("createTime <", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeLessThanOrEqualTo(Date value) {
            addCriterion("createTime <=", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIn(List<Date> values) {
            addCriterion("createTime in", values, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotIn(List<Date> values) {
            addCriterion("createTime not in", values, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeBetween(Date value1, Date value2) {
            addCriterion("createTime between", value1, value2, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotBetween(Date value1, Date value2) {
            addCriterion("createTime not between", value1, value2, "createtime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIsNull() {
            addCriterion("updateTime is null");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIsNotNull() {
            addCriterion("updateTime is not null");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeEqualTo(Date value) {
            addCriterion("updateTime =", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotEqualTo(Date value) {
            addCriterion("updateTime <>", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeGreaterThan(Date value) {
            addCriterion("updateTime >", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("updateTime >=", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeLessThan(Date value) {
            addCriterion("updateTime <", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeLessThanOrEqualTo(Date value) {
            addCriterion("updateTime <=", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIn(List<Date> values) {
            addCriterion("updateTime in", values, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotIn(List<Date> values) {
            addCriterion("updateTime not in", values, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeBetween(Date value1, Date value2) {
            addCriterion("updateTime between", value1, value2, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotBetween(Date value1, Date value2) {
            addCriterion("updateTime not between", value1, value2, "updatetime");
            return (Criteria) this;
        }

        public Criteria andFriendsceneIsNull() {
            addCriterion("friendScene is null");
            return (Criteria) this;
        }

        public Criteria andFriendsceneIsNotNull() {
            addCriterion("friendScene is not null");
            return (Criteria) this;
        }

        public Criteria andFriendsceneEqualTo(Integer value) {
            addCriterion("friendScene =", value, "friendscene");
            return (Criteria) this;
        }

        public Criteria andFriendsceneNotEqualTo(Integer value) {
            addCriterion("friendScene <>", value, "friendscene");
            return (Criteria) this;
        }

        public Criteria andFriendsceneGreaterThan(Integer value) {
            addCriterion("friendScene >", value, "friendscene");
            return (Criteria) this;
        }

        public Criteria andFriendsceneGreaterThanOrEqualTo(Integer value) {
            addCriterion("friendScene >=", value, "friendscene");
            return (Criteria) this;
        }

        public Criteria andFriendsceneLessThan(Integer value) {
            addCriterion("friendScene <", value, "friendscene");
            return (Criteria) this;
        }

        public Criteria andFriendsceneLessThanOrEqualTo(Integer value) {
            addCriterion("friendScene <=", value, "friendscene");
            return (Criteria) this;
        }

        public Criteria andFriendsceneIn(List<Integer> values) {
            addCriterion("friendScene in", values, "friendscene");
            return (Criteria) this;
        }

        public Criteria andFriendsceneNotIn(List<Integer> values) {
            addCriterion("friendScene not in", values, "friendscene");
            return (Criteria) this;
        }

        public Criteria andFriendsceneBetween(Integer value1, Integer value2) {
            addCriterion("friendScene between", value1, value2, "friendscene");
            return (Criteria) this;
        }

        public Criteria andFriendsceneNotBetween(Integer value1, Integer value2) {
            addCriterion("friendScene not between", value1, value2, "friendscene");
            return (Criteria) this;
        }

        public Criteria andIsmycontactIsNull() {
            addCriterion("isMyContact is null");
            return (Criteria) this;
        }

        public Criteria andIsmycontactIsNotNull() {
            addCriterion("isMyContact is not null");
            return (Criteria) this;
        }

        public Criteria andIsmycontactEqualTo(Integer value) {
            addCriterion("isMyContact =", value, "ismycontact");
            return (Criteria) this;
        }

        public Criteria andIsmycontactNotEqualTo(Integer value) {
            addCriterion("isMyContact <>", value, "ismycontact");
            return (Criteria) this;
        }

        public Criteria andIsmycontactGreaterThan(Integer value) {
            addCriterion("isMyContact >", value, "ismycontact");
            return (Criteria) this;
        }

        public Criteria andIsmycontactGreaterThanOrEqualTo(Integer value) {
            addCriterion("isMyContact >=", value, "ismycontact");
            return (Criteria) this;
        }

        public Criteria andIsmycontactLessThan(Integer value) {
            addCriterion("isMyContact <", value, "ismycontact");
            return (Criteria) this;
        }

        public Criteria andIsmycontactLessThanOrEqualTo(Integer value) {
            addCriterion("isMyContact <=", value, "ismycontact");
            return (Criteria) this;
        }

        public Criteria andIsmycontactIn(List<Integer> values) {
            addCriterion("isMyContact in", values, "ismycontact");
            return (Criteria) this;
        }

        public Criteria andIsmycontactNotIn(List<Integer> values) {
            addCriterion("isMyContact not in", values, "ismycontact");
            return (Criteria) this;
        }

        public Criteria andIsmycontactBetween(Integer value1, Integer value2) {
            addCriterion("isMyContact between", value1, value2, "ismycontact");
            return (Criteria) this;
        }

        public Criteria andIsmycontactNotBetween(Integer value1, Integer value2) {
            addCriterion("isMyContact not between", value1, value2, "ismycontact");
            return (Criteria) this;
        }

        public Criteria andIsbrandIsNull() {
            addCriterion("isBrand is null");
            return (Criteria) this;
        }

        public Criteria andIsbrandIsNotNull() {
            addCriterion("isBrand is not null");
            return (Criteria) this;
        }

        public Criteria andIsbrandEqualTo(Integer value) {
            addCriterion("isBrand =", value, "isbrand");
            return (Criteria) this;
        }

        public Criteria andIsbrandNotEqualTo(Integer value) {
            addCriterion("isBrand <>", value, "isbrand");
            return (Criteria) this;
        }

        public Criteria andIsbrandGreaterThan(Integer value) {
            addCriterion("isBrand >", value, "isbrand");
            return (Criteria) this;
        }

        public Criteria andIsbrandGreaterThanOrEqualTo(Integer value) {
            addCriterion("isBrand >=", value, "isbrand");
            return (Criteria) this;
        }

        public Criteria andIsbrandLessThan(Integer value) {
            addCriterion("isBrand <", value, "isbrand");
            return (Criteria) this;
        }

        public Criteria andIsbrandLessThanOrEqualTo(Integer value) {
            addCriterion("isBrand <=", value, "isbrand");
            return (Criteria) this;
        }

        public Criteria andIsbrandIn(List<Integer> values) {
            addCriterion("isBrand in", values, "isbrand");
            return (Criteria) this;
        }

        public Criteria andIsbrandNotIn(List<Integer> values) {
            addCriterion("isBrand not in", values, "isbrand");
            return (Criteria) this;
        }

        public Criteria andIsbrandBetween(Integer value1, Integer value2) {
            addCriterion("isBrand between", value1, value2, "isbrand");
            return (Criteria) this;
        }

        public Criteria andIsbrandNotBetween(Integer value1, Integer value2) {
            addCriterion("isBrand not between", value1, value2, "isbrand");
            return (Criteria) this;
        }

        public Criteria andIsentIsNull() {
            addCriterion("isEnt is null");
            return (Criteria) this;
        }

        public Criteria andIsentIsNotNull() {
            addCriterion("isEnt is not null");
            return (Criteria) this;
        }

        public Criteria andIsentEqualTo(Integer value) {
            addCriterion("isEnt =", value, "isent");
            return (Criteria) this;
        }

        public Criteria andIsentNotEqualTo(Integer value) {
            addCriterion("isEnt <>", value, "isent");
            return (Criteria) this;
        }

        public Criteria andIsentGreaterThan(Integer value) {
            addCriterion("isEnt >", value, "isent");
            return (Criteria) this;
        }

        public Criteria andIsentGreaterThanOrEqualTo(Integer value) {
            addCriterion("isEnt >=", value, "isent");
            return (Criteria) this;
        }

        public Criteria andIsentLessThan(Integer value) {
            addCriterion("isEnt <", value, "isent");
            return (Criteria) this;
        }

        public Criteria andIsentLessThanOrEqualTo(Integer value) {
            addCriterion("isEnt <=", value, "isent");
            return (Criteria) this;
        }

        public Criteria andIsentIn(List<Integer> values) {
            addCriterion("isEnt in", values, "isent");
            return (Criteria) this;
        }

        public Criteria andIsentNotIn(List<Integer> values) {
            addCriterion("isEnt not in", values, "isent");
            return (Criteria) this;
        }

        public Criteria andIsentBetween(Integer value1, Integer value2) {
            addCriterion("isEnt between", value1, value2, "isent");
            return (Criteria) this;
        }

        public Criteria andIsentNotBetween(Integer value1, Integer value2) {
            addCriterion("isEnt not between", value1, value2, "isent");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}